import logging
from logging import DEBUG
import yagmail
def set_up():
    logging.basicConfig(level=DEBUG,format='%(message)s -> %(asctime)s',handlers=[logging.StreamHandler(),logging.FileHandler('long.txt')])
def set_mian(name):
    mian=yagmail.SMTP(user='1689306711@qq.com',password='jmcxdzrdtuggfddb',host='smtp.qq.com')
    mian.send(to='1689306711@qq.com',subject='请求报告',contents='测试报告',attachments=name)
